package
{
	import flash.display.Loader;
	import flash.display.Sprite;
	import flash.net.URLRequest;
	/**
	 * Image class  
	 * @author PC-100
	 * 
	 */	
	public class Image extends Sprite
	{
		/**
		 * 
		 */
		private var loader:Loader;
		public var url:String;
		public function Image()
		{
			super();
			
			loader = new Loader();
			this.addChild( loader );
		}
		/**
		 * 加载图片 
		 * @param url
		 * 
		 */		
		public function loadImage(_url:String):void
		{
			url = _url;
			loader.load( new URLRequest( url ) );
		}
	}
}